import React from 'react';
import {
  useRoutes
} from 'react-router-dom'
import routes from "./router";
import AppHeader from "./component/AppHeader";
import AppFooter from "./component/AppFooter";

function App(props) {

  return (
    <div className='app'>
      <AppHeader/><hr />
      <div className='content'>
        {
          useRoutes(routes)
        }
      </div><hr />
      <AppFooter/>
    </div>
   );
}
 
export default App;